import { ref } from 'vue'
import { defineStore } from 'pinia'

export const sysConfigStore = defineStore('sysConfig', () => {
  const fullScreen = ref(false)
  const isNight = ref(false)

  function toggle() {
    fullScreen.value = !fullScreen.value
  }

  function toggleNight() {
    isNight.value = !isNight.value
  }

  return { fullScreen, isNight, toggle, toggleNight }
})
